#include <stdio.h>
#include <string.h>

int main()
{
    /*不适用strlen，请你计算这个buffer字符串的长度*/
    char buffer[] = "s\0dgsfdgdgfdfdgfdfgdfgdfdfgdewtdrtdr";
    int length = sizeof(buffer)/sizeof(buffer[0]);
    int count = 0;
    for(int idx = 0;idx<length;idx++)
    {
        if(buffer[idx]=='\0')
        {
            count = idx;
            break;
        }
    }
    printf("%d\n",count);

    int len=strlen(buffer);
    printf("%d\n",len);
    return 0;
}